javascript strings interview questions